//
//  LCFunction.h
//  lechuang
//
//  Created by Mr_hi on 2023/3/20.
//  Copyright © 2023 Mooyi. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface LCFunction : NSObject

+ (BOOL)isIphoneX;

/** MD5 */
+ (NSString *)ns_md5:(NSString *)string;
/** 判断本地保存的数据是否为空 */
+ (BOOL )isWeiKong:(NSString *)str;
/** 判断字典为空 */
+ (BOOL)isBlankDictionary:(NSDictionary *)dic;
/** 判断字符串为空 */
+ (BOOL)isEmptyString:(NSString *)string;
/** 字符串为空处理 */
+ (NSString *)dealEmptyString:(NSString *)string;
/** 钥匙串存数据 */
+ (void)KeyChainString:(NSString *)str forKey:(NSString *)key;
/** 钥匙串取出数据 */
+ (NSString *)KeyChainStringForKey:(NSString *)key;
/** 处理线上/本地Url图片 */
+ (NSURL *)XWX_URLImg:(NSString *)urlStr;
/** 处理网页/本地Str图片 */
+ (NSString *)XWX_URL_StrImg:(NSString *)urlStr;
/** 获取当前时间戳（以毫秒为单位） */
+ (NSString *)getNowTimeTimestamp;
/** 计算两数的值 */
+ (NSString *)XWXCalculateWay:(NSInteger)calculateWay WithScale:(NSInteger)scale withFirstValue:(NSString *)firstValue withSecondValue:(NSString *)secondValue;

/** 获取设备信息JSon字符串 */
+ (NSString *)getDeviceInfo;

/** 下载描述文件  */
+ (void)downloadConfig;

/** 判断是否绑定微信 */
+ (BOOL)bangDingWeChat:(NSString *)string;

// 去除掉首尾的空白字符和换行字符
+ (NSString *)noWhiteSpaceString:(NSString *)newString;

/// 获取字典有序key=vaule数组
/// @param dict 传入的dict
+ (NSArray *)keyVauleArrWithDictionary:(NSDictionary *)dict;

+ (CGSize)lc_stringSizeWithFont:(UIFont *)font str:(NSString*)str maxWidth:(CGFloat)maxWidth maxHeight:(CGFloat)maxHeight;

/// 播打电话
+(void)lc_callPhoneNumber:(NSString *)phone;


@end

